from django.conf.urls import patterns, url, include
from basedata.views import CityListView, CityCreate, CityDelete, FeatureListView, FeatureCreate, FeatureDelete, \
    CityAjaxView, StateListView, StateCreate, StateDelete, AreaListView, AreaCreate, AreaDelete

urlpatterns = patterns('',
                       url(r'^city/$', CityListView.as_view(), name='city_list'),
                       url(r'^city/create/$', CityCreate.as_view(), name='city_create'),
                       url(r'^city/delete/(?P<pk>\d+)$', CityDelete.as_view(), name='city_delete'),
                       url(r'^feature/$', FeatureListView.as_view(), name='feature_list'),
                       url(r'^feature/create/$', FeatureCreate.as_view(), name='feature_create'),
                       url(r'^feature/delete/(?P<pk>\d+)$', FeatureDelete.as_view(), name='feature_delete'),
                       url(r'^ajax/$', CityAjaxView.as_view(), name='city_ajax'),
                       url(r'^state/$', StateListView.as_view(), name='state_list'),
                       url(r'^state/create/$', StateCreate.as_view(), name='state_create'),
                       url(r'^state/delete/(?P<pk>\d+)$', StateDelete.as_view(), name='state_delete'),
                       url(r'^area/$', AreaListView.as_view(), name='area_list'),
                       url(r'^area/create/$', AreaCreate.as_view(), name='area_create'),
                       url(r'^area/delete/(?P<pk>\d+)$', AreaDelete.as_view(), name='area_delete'),
                       )
